//
//  MyAccountTableViewCell.m
//  tuanGG
//
//  Created by 微他 on 15/10/21.
//  Copyright (c) 2015年 weita. All rights reserved.
//

#import "MyAccountTableViewCell.h"

@implementation MyAccountTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        self.image = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 40,40)];
        [self addSubview:self.image];
        NSLog(@"%f",self.frame.size.height);
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(_image.frame.size.width+20, 10, ScreenWidth-_image.frame.size.width-20, 20)];
        [self addSubview: self.nameLabel];

        self.codeDetails = [[UILabel alloc]initWithFrame:CGRectMake(_image.frame.size.width+20, CGRectGetMaxY(_nameLabel.frame), ScreenWidth-_image.frame.size.width-20, 20)];
        _codeDetails.font =[UIFont systemFontOfSize:13];
        _codeDetails.textColor = [UIColor colorWithHexString:@"#989898"];
        [self addSubview:self.codeDetails];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
